package jgl.vajra.kingkong.part.mine.contract;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.kingkong.bean.MyWalletBean;
import jgl.vajra.kingkong.databinding.ActivityMyWalletBinding;
import jgl.vajra.kingkong.widget.mvvm.model.BaseModel;
import jgl.vajra.kingkong.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.kingkong.widget.mvvm.viewmodel.BaseViewModel;

public class MyWalletContract {
    public abstract static class Model extends BaseModel {

        public abstract Observable<MyWalletBean> getMyWalletData(Map<String, Object> map);

        public abstract Observable<String> getConvertedConsumptionData(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void onDetailed();

        void onConvertedConsumption(String amount, int type);

        void onWithdrawal(String amount, int type);

        void onRechargeInstructions();

        void returnMyWalletData(MyWalletBean data);

        void returnConvertedConsumptionData(String data);
    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityMyWalletBinding, Model> {


        public abstract void getMyWalletData(Map<String, Object> map);

        public abstract void getConvertedConsumptionData(Map<String, Object> map);
    }
}
